<%@ page language="java" contentType="application/xhtml+xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>
<u:html-top title="Users"/>
<c:url value="/db/user/create" var="url"></c:url>
<div class="action"><a href="<c:out value="${url}" escapeXml="true"/>">Create/Update User</a></div>

<table class="entityList">
	<thead>
		<tr>
			<th>ID</th>
			<th>Login</th>
			<th>Name</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="user" items="${users}">
			<tr>
				<td>
					${user.id}
				</td>
				<td>
					<c:out value="${user.login}" escapeXml="true"/>
				</td>
				<td>
					<u:user-href user="${user}"/>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<u:html-bottom/>